package models;

import models.crudsiena.SienaSupport;
import siena.Generator;
import siena.Id;
import siena.NotNull;

/**
 * Created by Gipxy group
 * Date: 5/9/12
 */
public class Banner extends SienaSupport {
    @Id(Generator.AUTO_INCREMENT)
    public Long id;

    @NotNull
    public String language;

    @NotNull
    public String code;

    public String url;
    public String title;
    
    public byte[] photo;

    /*
    type = MAIN_BANNER => for main banner
    type = SLIDE_HOME => for home slide
    * */
    public String type;

    public Integer order;
}
